package com.control;

import java.awt.Component;
import java.util.ArrayList;
import java.util.List;

import com.agent.Const;

public class AbtLabel extends AbtControl{
	private Component m_Object;
	public AbtLabel m_Instance;
	
	public static List<String> properties = new ArrayList<String>();
	
	public AbtLabel(){
		
	}
	
	public AbtLabel(Component comp){
		if(this.m_Instance == null){
			this.m_Instance = new AbtLabel();
		}
		this.m_Instance.setComponent(comp);
		
		initPropertiesList();
	}

	public static List<String> initPropertiesList() {
		if(properties == null){
			properties = new ArrayList<String>();
		}
		
		if(properties.size()==0){
			properties = AbtControl.initPropertiesList();
			properties.add(Const.CAPTION);
		}
		
		return properties;
	}

	public Component getM_Object() {
		return this.m_Instance.m_Object;
	}

	public void setM_Object(Component m_Object) {
		this.m_Instance.m_Object = m_Object;
	}
	
	public List<String> getPropertiesList() {
		return properties;
	}
}
